Skip to content

Conversation

andrewyuq
Copy link
Contributor

  1. add multiple fields in UserTriggerDecision event and UserModification event,
  2. Update the latency calculation to reflect the latest definition
  3. added some initial a/b testing changes for new auto-trigger UX

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

1. add multiple fields in UserTriggerDecision event
and UserModification event,
2. Update the latency calculation to reflect the latest
definition
3. added some initial a/b testing changes for new auto-trigger UX
// sendUserModificationTelemetryToServiceAPI(acceptedSuggestion, 1.0)
// Will remove this later when we truly don't need toolkit user modification telemetry anymore
val document = runReadAction {
FileDocumentManager.getInstance().getDocument(file)
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

private const val TEST_FEATURE_NAME = "testFeature"
private const val DATA_COLLECTION_FEATURE = "IDEProjectContextDataCollection"
const val CUSTOMIZATION_ARN_OVERRIDE_NAME = "customizationArnOverride"
private const val NEW_AUTO_TRIGGER_UX = "newAutoTriggerUX"
Copy link
Contributor

@Will-ShaoHua Will-ShaoHua Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could make these constants sealed data object

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like

sealed interface Feature {
     val  id: String
     
     sealed data object Feature1 { id: 'feat1'}

     sealed data object Feature2 { id: 'feat2' }
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can do this later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

nkomonen-amazon pushed a commit to aws/aws-toolkit-vscode that referenced this pull request Oct 10, 2024
…ification events (#5766)

1. bring back UserModification SendTelemetryEvent and track
acceptedCharacterCount and unmodifiedAcceptedCharacterCount.
2. combine some latency tracking to the session object

JB PR reference: aws/aws-toolkit-jetbrains#4955 
## Problem


## Solution


---

<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->

License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
@rli rli merged commit d18218c into aws:main Oct 10, 2024
9 of 12 checks passed
tverney pushed a commit to tverney/aws-toolkit-vscode that referenced this pull request Oct 21, 2024
…ification events (aws#5766)

1. bring back UserModification SendTelemetryEvent and track
acceptedCharacterCount and unmodifiedAcceptedCharacterCount.
2. combine some latency tracking to the session object

JB PR reference: aws/aws-toolkit-jetbrains#4955 
## Problem


## Solution


---

<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->

License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants